<?php

/**
 * 店铺权限控制
 *
 * @author libaoling
 * @time 2014-11-19
 */

return array(
    'seller|all' => array(
        'name' => '卖家中心',
        'app' => 'seller',
        'child' => array(
            'seller|index' => array('name' => '卖家中心首页')
        )
    ),
    'seller_order|all' => array(
        'name' => '订单管理',
        'app' => 'seller_order',
        'child' => array(
            'seller_order|index' => array('name' => '订单列表'),
            'seller_order|cancel_order' => array('name' => '取消订单'),
            'seller_order|confirm_order' => array('name' => '确认收货'),
            'seller_order|adjust_fee' => array('name' => '调整费用'),
            'seller_order|shipped' => array('name' => '订单发货'),
            'seller_order|edit_address' => array('name' => '修改收货地址'),
            'seller_order|evalua' => array('name' => '评价管理'),
            'seller_order|view' => array('name' => '查看订单详情'),
//            'seller_order|received_pay' => array('name' => '收到货款'),
            'seller_order|finished' => array('name' => '完成交易'),
        )
    ),
    'my_qa' => array(
        'name' => '消息提醒',
        'app' => 'my_qa',
        'child' => array(
            'my_qa|index' => array('name' => '消息列表'),
            'my_qa|reply' => array('name' => '回复'),
            'my_qa|drop' => array('name' => '删除咨询'),
            'my_qa|edit_reply' => array('name' => '编辑咨询'),
        )
    ),
    'my_goods|all' => array(
        'name' => '商品管理',
        'app' => 'my_goods',
        'child' => array(
            'my_goods|index' => array('name' => '查看全部商品'),
            'my_goods|add' => array(
                'name' => '发布新商品',
                'act' => 'add',
                'include' => array('my_goods|drop_image','my_goods|get_shipping_type','my_goods|AjaxSpecAttr', 'my_goods|check_mgcate', 'swfupload|index')
            ),
            'my_goods|edit' => array(
                'name' => '编辑商品',
                'act' => 'edit',
                'include' => array('my_goods|batch_edit','my_goods|drop_image','my_goods|get_shipping_type', 'my_goods|check_mgcate', 'swfupload|index')
            ),
            'my_goods|drop' => array('name' => '删除商品'),
            'my_goods|ajax_col' => array('name' => '上下架、设为店铺推荐修改'),
            'my_goods|edit_stock' => array('name' => '修改库存'),
        )
    ),
    'my_category|all' => array(
        'name' => '店铺商品分类',
        'app' => 'my_category',
        'child' => array(
            'my_category|index' => array('name' => '查看商品分类'),
            'my_category|add' => array(
                'name' => '新增分类',
                'act' => 'add',
                'include' => array('my_category|check_category')
            ),
            'my_category|edit' => array(
                'name' => '编辑分类',
                'act' => 'edit',
                'include' => array('my_category|check_category')
            ),
            'my_category|drop' => array('name' => '删除分类'),
            'my_category|ajax_col' => array('name' => '名称、排序、是否显示修改'),
        )
    ),
    'my_store|all' => array(
        'name' => '店铺管理',
        'app' => 'my_store',
        'child' => array(
            'my_store|index' => array(
                'name' => '店铺设置',
                'include' => array('my_store|drop_uploadedfile', 'comupload|all')
            )
        )
    ),
    'my_shipping|all' => array(
        'name' => '物流管理',
        'app' => 'my_shipping',
        'child' => array(
            'my_shipping|index' => array('name' => '查看物流设置'),
            'my_shipping|add' => array('name' => '新建运费模板'),
            'my_shipping|edit' => array('name' => '修改运费模板'),
            'my_shipping|drop' => array('name' => '删除运费模板'),
        )
    ),
    'seller_address|all' => array(
        'name' => '退货/发货地址管理',
        'app' => 'seller_address',
        'child' => array(
            'seller_address|returns' => array('name' => '查看地址'),
            'seller_address|add' => array('name' => '添加地址'),
            'seller_address|edit' => array('name' => '编辑地址'),
            'seller_address|setdefault' => array('name' => '设为默认地址'),
            'seller_address|drop' => array('name' => '删除地址'),
        )
    ),
    'seller_returns|all' => array(
        'name' => '退货/退款管理',
        'app' => 'seller_returns',
        'child' => array(
            'seller_returns|index' => array('name' => '查看退货退款记录'),
            'seller_returns|view' => array('name' => '查看详情'),
            'seller_returns|agree' => array('name' => '同意退货退款'),
            'seller_returns|intervene' => array('name' => '申请万菱介入'),
            'seller_returns|refuse' => array('name' => '拒绝买家退货退款申请')
        )
    ),
    'my_promotion|all' => array(
        'name' => '促销设置',
        'app' => 'my_promotion',
        'child' => array(
            'my_promotion|index' => array('name' => '查看促销活动'),
            'my_promotion|add' => array(
                'name' => '添加促销活动',
                'act' => 'add',
                'include' => array('my_promotion|ajax_get_goods')
            ),
            'my_promotion|edit' => array(
                'name' => '修改促销活动',
                'act' => 'edit',
                'include' => array('my_promotion|ajax_get_goods')
            ),
            'my_promotion|drop' => array(
                'name' => '删除促销活动',
                'act' => 'drop',
                'include' => array('my_promotion|ajax_dorp_goods')
            ),
        )
    ),
    'my_clearing|all' => array(
        'name' => '结算管理',
        'app' => 'my_clearing',
        'child' => array(
            'my_clearing|index' => array('name' => '查看本期结算'),
            'my_clearing|confirm' => array('name' => '确认可结算'),
            'my_clearing|record' => array('name' => '查看历史结算'),
        )
    )
);